package com.qiujie.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.google.errorprone.annotations.NoAllocation;
import io.swagger.annotations.ApiModel;
import lombok.*;

import java.sql.Timestamp; // 修正导入

@Data
@TableName("att_approve_record")
@ApiModel("审批记录")
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class ApproveRecord {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer leaveId;

    private Integer nodeOrder;

    private String approverRole;

    @TableField("approver_id")
    private Integer approverId;

    @TableField("approver_name")
    private String approverName; // 新增字段


    @TableField("remark") // 映射到数据库字段
    private String remark; // 新增

    private Integer status;

    private Timestamp createTime;

    @TableField(exist = false)
    private String roleName; // 新增非持久化字段




}
